package com.course_design.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.course_design.dao.RecordMapper;
import com.course_design.entity.Record;

@Service
public class RecordService {
	@Autowired
	private RecordMapper recordMapper;
	public List<Record> queryAllRecord(Integer classInfo){
		List<Record> records=recordMapper.selectWithStudent(classInfo);
		return records;
	}
	public void insertRecord(Record record) {
		recordMapper.insert(record);
	}
}
